package com.aos.erp.schools.service.coach;

import com.aos.erp.schools.model.coach.CoachCar;
import com.aos.erp.schools.model.coach.Dto.CoachCarDto;
import com.aos.erp.schools.model.sys.dto.PositionDto;
import com.aos.erp.schools.model.sys.vo.PositionVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface CoachCarService {

    /**
     * 新增
     *
     * @param coachCar
     * @throws Exception
     */
    void addBean(CoachCar coachCar) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    int isDel(String id) throws Exception;

    /**
     * 修改
     *
     * @param coachCar
     * @return
     * @throws Exception
     */
    int updateObject(CoachCar coachCar) throws Exception;

    List<CoachCarDto> findByParams(Map<String, Object> map) throws Exception;

    CoachCarDto getInfo(String id);
    /**
     * 分页查询
     *
     * @param pageIndex 当前页码
     * @param pageSize  每页显示条数
     * @param carId     车辆id
     * @param coachId   教练id
     * @param coachName 教练名称
     * @return
     */
    IPage<CoachCarDto> queryByPage(Integer pageIndex, Integer pageSize, String carId, String coachId, String coachName);

    /**
     * 分页查询
     *
     * @param pageIndex 当前页码
     * @param pageSize  每页显示条数
     * @param carId     车辆id
     * @param coachId   教练id
     * @param coachName 教练名称
     * @param depCode    部门组织code
     * @return
     */
    IPage<CoachCarDto> selectByParams(Integer pageIndex, Integer pageSize, String carId, String coachId, String coachName,String depCode);
}
